package cn.rkylin.oms.ext.cainiao.stockin.dao;


import java.util.List;

import cn.rkylin.oms.ext.cainiao.stockin.domain.StockIn;
import cn.rkylin.oms.ext.cainiao.stockin.domain.StockinType;
import cn.rkylin.oms.ext.cainiao.stockin.vo.StockInVO;

/**
 * 入库DAO
 *
 * @author 齐涛
 * @version 1.0
 * @created 11-9-2017 10:51:30
 */
public interface StockInDAO {

    /**
     * 查询入库单信息
     *
     * @param stockInVO 入库单VO
     * @return 入库单信息
     * @throws Exception 异常
     */
    public StockInVO getStockInInfo(StockInVO stockInVO) throws Exception;

    /**
     * 更新入库单
     *
     * @param stockIn 入库单bean
     * @return 更新条数
     * @throws Exception 异常
     */
    public int updateStockIn(StockIn stockIn) throws Exception;

    /**
     * 删除入库单
     *
     * @param stockIn 入库单bean
     * @return 删除条数
     * @throws Exception 异常
     */
    public int deleteStockIn(StockIn stockIn) throws Exception;

    /**
     * 添加入库单
     *
     * @param stockIn 入库单bean
     * @return 添加条数
     * @throws Exception 异常
     */
    public int insertStockIn(StockIn stockIn) throws Exception;

    /**
     * 查询入库类型列表
     *
     * @return
     * @throws Exception
     */
    public List<StockinType> selectStockinTypeList() throws Exception;

}
